/*
 * @Description:
 * @Author: zheng yiliang
 * @Date: 2021-04-18 14:05:26
 * @LastEditTime: 2021-04-18 14:05:49
 * @LastEditors: zheng yiliang
 */

import request from '@/utils/request'

// 查询菜单列表
export function getAllTag (query) {
  return request({
    url: '/tags/list',
    method: 'get',
    params: query
  })
}

export function addTag (data) {
  return request({
    url: '/tags/add',
    method: 'post',
    data
  })
}

export function detailTag (id) {
  return request({
    url: '/tags/detail',
    method: 'get',
    params: { id }
  })
}
export function editTag (data) {
  return request({
    url: '/tags/edit',
    method: 'put',
    data
  })
}
export function delTag (data) {
  return request({
    url: '/tags/del',
    method: 'delete',
    data
  })
}
